import POJO.MoviePerformer;
import dao.MoviePerformerDAO;
import dao.MoviePerformerDAOImpl;

/**
 * @auther 尚智江
 * @Date 2022/5/5 23:32
 */
public class InsertTest {
    public static void main(String[] args) {
        MoviePerformerDAO moviePerformerDAO = new MoviePerformerDAOImpl();
        /**
         *  程序输出 1 说明sql执行成功其他一样
         *  右键在后缀为Test的文件内执行程序
         *  只写了 添加 （通过名字 id查询信息） 修改信息
         *  没意思不想写别的了其他自己照着抄
         */

////        MoviePerformer moviePerformer = new MoviePerformer();
//        System.out.println(moviePerformerDAO.insert(1,"蜘蛛侠","李和熙","哈哈哈"));
        MoviePerformer moviePerformer = new MoviePerformer();
        moviePerformer.setId(2);
        moviePerformer.setMovieTitle("蜘蛛侠");
        moviePerformer.setName("李和熙");
        moviePerformer.setRepresentive("hhhhhh");
         int b = moviePerformerDAO.insert(moviePerformer);
        System.out.println(b);
    }
}
